package homework11;

public class main1 {
	class Account{
		private int balance;
		
		public Account(int money){
			this.balance = money;
		}

		public int getBalance() {
			return balance;
		}
		public synchronized void deposit(int money){
			synchronized(this){
			balance += money; //201621123050
			}
		}
		public synchronized void withdraw(int money){
			synchronized(this){
				balance -= money; //201621123050
				}
		}
	}

	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaaaaaa
	aaaa
	aaaa
	aaaa
	aaaa
	aaaa
}
